package com.piker.pikeropen.server;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class TournamentDTO {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key mKey;

	@Persistent
	private Key mGolfer;

	@Persistent
	private List<RoundDTO> mRounds;

	public TournamentDTO(Key key, List<RoundDTO> rounds, Key golfer) {
		super();
		mKey = key;
		mRounds = rounds;
		mGolfer = golfer;
	}

	public Key getKey() {
		return mKey;
	}

	public void setKey(Key key) {
		mKey = key;
	}

	public List<RoundDTO> getRounds() {
		return mRounds;
	}

	public void setRounds(List<RoundDTO> rounds) {
		mRounds = rounds;
	}

	public Key getGolfer() {
		return mGolfer;
	}

	public void setGolfer(Key golfer) {
		mGolfer = golfer;
	}
}
